package tedu.study.ooday03_2;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}


interface Inter{
    public abstract void show();
    void test();//默认 public abstract
    //void say(){};//抽象方法不能有方法体
}

interface Inter1{
    void show();
    void test();
}

class Aoo implements Inter1{
    public void show(){//重写接口中的方法时，访问权限必须是public,因为不能比接口的权限小
        System.out.println("Aoo实现Inter1show");
    }

    public void test(){
        System.out.println("Aoo实现Inter1test");
    }
}

//继承+实现
interface  Inter2{
    void show();
}
interface  Inter3{
    void test();
}
abstract class Boo{
    abstract void say();
}
class Coo extends Boo implements Inter2,Inter3{
    public void show(){}
    public void test(){}
    void say(){}
}

//接口继承接口
interface Inter4{
    void show();
}
interface  Inter5 extends Inter4{
    void test();
}
class Doo implements Inter5{
    public void show(){}
    public void test(){}
}
























